import { ICommonState } from './state'

export const mutations = {
  setTaskInfos: (state: ICommonState, taskInfos: string) => {
    state.taskInfos = taskInfos
  },
  setPeriodInfos: (state: ICommonState, periodInfos: string) => {
    state.periodInfos = periodInfos
  },
  setTaskInfosInit: (state: ICommonState, taskInfosInit: string) => {
    state.taskInfosInit = taskInfosInit
  },
  setBackTaskTime: (state: ICommonState, backTaskTime: number) => {
    state.backTaskTime = backTaskTime
  },
  setCurrentTaskName: (state: ICommonState, taskName: string) => {
    state.taskName = taskName
  },
  setCurrentTime: (state: ICommonState, currTime) => {
    state.currTime = currTime
  },
  setReloginFlag: (state: ICommonState, reloginFlag) => {
    state.reloginFlag = reloginFlag
  },
  setErrFlag: (state: ICommonState, errFlag) => {
    state.errFlag = errFlag
  },
  setCurrClassObj: (state: ICommonState, currClassObj) => {
    state.currClassObj = currClassObj
  },
  setClassText: (state: ICommonState, classText) => {
    state.classText = classText
  }
}
